package com.honglv.controller.common;

import com.honglv.pojo.dto.RegisterDTO;
import com.honglv.pojo.result.Result;
import com.honglv.service.RegisterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: 生
 * @Date: 2024/04/02/18:36
 * @Description:
 */
@RestController
@Slf4j
@Api("注册")
public class RegisterController {

    @Autowired
    private RegisterService registerService;


    @PostMapping
    @ApiOperation("注册功能")
    public Result register(RegisterDTO registerDTO){
        return registerService.regiter(registerDTO);
    }
}
